<div class="form_container" id="divEditReport" style="width: 600px;">
<form id="frmEditReport">
<input type="hidden" name="reportId" id="reportId" value="{$reportId}">
<table>
	<tr><td colspan="2"><span class="formAlertMsg" id="errMsgEditReport"></span> 
	<tr><td colspan="2"><span class="label" style="text-transform: uppercase;">{translate}Create/Edit report{/translate}</span></td></tr>
	<tr>
		<td><span class="label">{translate}Report's name{/translate} (*)</span></td>
		<td><input type="text" name="reportName" id="reportName" style="width: 200px;" maxlength="255" value="{$report->getName()}"></td>
	</tr>
	<tr>
		<td><span class="label">{translate}Description{/translate}</span></td>
		<td><textarea rows="2" cols="45" name="reportDesc" id="reportDesc">{$report->getDescription()}</textarea></td>
	</tr>
	<tr>
		<td><span class="label">{translate}Report group{/translate}</span></td>
		<td>
			<select id="ownerGroup" name="ownerGroup" style="width: 206px;">
				{html_options options=$groups selected=$report->getGroupId()}
			</select>
		</td>
	</tr>
	<tr>
		<td><span class="label">{translate}Variable name{/translate}</span></td>
		<td><input type="text" name="metricName" id="metricName" style="width: 200px;" maxlength="255" value="{$report->getMetricName()}"></td>
	</tr>
	<tr>
		<td><span class="label">{translate}Data name{/translate}</span></td>
		<td><input type="text" name="dataName" id="dataName" style="width: 200px;" maxlength="255" value="{$report->getDataName()}"></td>
	</tr>
	<tr>
		<td><span class="label">{translate}Data type{/translate}</span></td>
		<td>
			<select id="dataType" name="dataType" style="width: 126px;">
				{html_options options=$dataTypes selected=$report->getDataType()}
			</select>
		</td>
	</tr>
	<tr>
		<td><span class="label">{translate}Unit{/translate}</span></td>
		<td><input type="text" name="dataUnit" id="dataUnit" style="width: 120px;" maxlength="20" value="{$report->getDataUnit()}"></td>
	</tr>
	<tr>
		<td colspan="2">
			<div id="actionButtons" style="display: inline-table">
				<input type="button" value="{translate}Save{/translate}" id="btnSaveReport" onclick="saveReportInfo()" title="{translate}Save report group{/translate}">
				&nbsp;<input type="button" id="btnLoadInputDataPage" value="{translate}Input data{/translate} &gt;&gt;" onclick="loadInputDataPage()" title="{translate}Input data into report{/translate}" {if $reportId==0}disabled="disabled"{/if}> 
			</div>
			<div style="display: none;" id="loading">
				<img src="{$base_uri}images/ajax-loader.gif">
			</div>
			<span id="msgEditReport" style="font-style: italic"></span>
		</td>
	</tr>
</table>
</form>
</div>